import { createBrowserRouter, createHashRouter } from "react-router-dom";
import App from '@/views/App.jsx'
import PageA from '@/views/PageA.jsx'
import PageB from '@/views/PageB.jsx'

export default createHashRouter([
  {
    path: "/",
    element: <App />,
    children: [
      {
        path: "page/a/:p",
        element: <PageA />,
      },
      {
        path: "page/b",
        element: <PageB />,
      }
    ]
  },
]);